package com.wing.storage.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wing.storage.model.entity.ProductInventoryDetail;
import com.wing.storage.model.entity.ProductInventoryRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 产品库存记录-Dao
 *
 * @author xiayang
 */
@Mapper
public interface ProductInventoryRecordDao extends BaseMapper<ProductInventoryRecord> {

    /**
     * 产品库存记录列表
     *
     * @param page
     * @param params
     * @return
     */
    List<ProductInventoryRecord> pageList(@Param("page") Page<ProductInventoryRecord> page, @Param("params") Map<String, Object> params);

    /**
     * 产品库存记录
     *
     * @param id 产品库存记录ID
     * @return
     */
    ProductInventoryRecord get(Long id);
}
